package edu.zut.operator;
//导包  自动完成的
import java.util.Scanner;

/**
 * 代码格式化： ctrl + alt + L
 */
public class OperatorDemo2 {

    public static void main(String[] args) {
        //扫描器：能帮助我们获取在控制台输入的数据
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入两个数字:");
        //获取在控制台输入的整数
        int i = scanner.nextInt();
        int j = scanner.nextInt();
        System.out.println("i = " + i);
        System.out.println("j = " + j);
        //获取浮点类型
        System.out.println("请输入一个小数:");
        double d = scanner.nextDouble();
        System.out.println("d = " + d);
        //获取字符串
        String s = scanner.next();
        System.out.println("s = " + s);

    }

}
